package com.ny.dao;

import com.ny.entity.Manager;

import java.sql.SQLException;
import java.util.List;

public interface ManagerDao {
    Manager login(String name, String password) throws Exception;
    public List<Manager> findAllManager() throws SQLException, ClassNotFoundException;
    int insertManager(Manager manager) throws SQLException, ClassNotFoundException;
    int updateManager(Manager manager) throws SQLException, ClassNotFoundException;
    int deleteManager(String name) throws SQLException, ClassNotFoundException;
}
